import Mock from '../mock-class.js'

const menus = [
	{
		id: 2,
		title: '系统管理',
		level: 1,
		children: [],
	},
	{
		id: 7,
		title: '组件管理',
		level: 1,
		children: [
			{
				id: 8,
				title: '反馈组件',
				level: 2,
				children: [],
			},
			{
				id: 9,
				title: '表单组件',
				level: 2,
				children: [],
			},
		],
	}
]

Mock.mock(Mock.baseURL + '/parentmenu/list', 'get', function (options) {
	// console.log(options)
	return {
		code: 200,
		data: {
			list: menus,
			total: 2
		},
		message: ''
	}
})